package com.huyun.web.modules.reflect;
/**
 * @ author huyunqiang
 * @ Date 2019/5/28 18:54
 */

public class Fruit {
    public int num;
    private String type;

    public void setNum(int num) {
        this.num = num;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getNum() {
        return num;
    }

    public String getType() {
        return type;
    }

    public Fruit(){
        System.out.println("无参构造器 Run...........");
    }
    public Fruit(String type){
        System.out.println("有参构造器 Run..........." + type);
    }
}
